var nashornExamplesClass = Java.type('vn.axonivy.vision.nashorn.NashornExamples');

nashornExamplesClass.printJavaGreetings('AA');

var result = nashornExamplesClass.getJavaGreetings('AA');
print(result);